#pragma once
#include <iostream>

template<typename T>
inline void printContainer(const T& container)
{
    for (const auto& item : container)
    {
        std::cout << item << " ";
    }
    std::cout << std::endl;
}

template<typename T>
inline void printContainerOptional(const T& container)
{
    for (const auto& item : container)
    {
        if (item)
        {
            std::cout << item.value() << " ";
        }
        else
        {
            std::cout << "null ";
        }
    }
    std::cout << std::endl;
}